#define _CRT_SECURE_NO_WARNINGS
#include"string.h"

void test()
{
	//cui::string s1("hello world");
	//cout << s1.size() << endl;
	/*for (size_t i = 0; i < s1.size(); i++)
	{
		s1[i]++;
	}
	for (size_t i = 0; i < s1.size(); i++)
	{
		cout << s1[i] ;
	}
	cout << endl;*/
	//const cui::string s1("hello world");
	//
	//cui::string::const_iterator ch = s1.begin();
	////auto ch = s1.begin();
	//while (ch != s1.end())
	//{
	//	cout << *ch;
	//	ch++;
	//}
	//cout << endl;
	//for (auto it : s1)
	//{
	//	cout << it ;
	//}
	//cout << endl;
	//cui::string s1("hello world");
	//s1 += '\0';
	//s1 += "abcd";
	////s1.resize(13,'x');
	////cout << s1.find("ll")<< endl;
	////s1.
	//cout << s1.c_str() << endl;
	//cout << s1 << endl;

	/*cui::string s1;
	cin >> s1;
	cout << s1 << endl;
	cin >> s1;
	cout << s1 << endl;*/
	cui::string s1("hello");
	//cui::string s2(s1);
	cout << s1 << endl;
	//cout << s2 << endl;
	cui::string s3;
	s3 = s1;

	cout << s3 << endl;
}
int main()
{
	test();

	//cui::string s1("hello world");
	//cout << s1.size() << endl;
	//cout << s1[0] << endl;
	//const cui::string s2("hello cui");
	//cout << s2.c_str() << endl;

	////cui::string::const_iterator cit = s2.begin();
	//auto cit = s2.begin();
	//while (cit != s2.end())
	//{
	//	cout << *cit << ' ';
	//	++cit;
	//}
	//cout << endl;

	//cui::string::iterator it = s1.begin();
	//while (it != s1.end())
	//{
	//	//*it += 1;
	//	cout << *it << ' ';
	//	++it;
	//}
	//cout << endl;
	//for (auto ch : s1)
	//{
	//	cout << ch << ' ';
	//}
	//cout << endl;

	return 0;
}